package springCache;

public class DogProxy extends Dog {

    private final Dog target;

    public DogProxy(Dog dog) {
        this.target = dog;
    }

    public String getName() {
        return "[" + this.target.getName() + "]";
    }
}
